<?php
/**
 * Created by PhpStorm.
 * User: Qch
 * Date: 2017/9/15
 * Time: 22:08
 */

namespace Application\Index\Controller;


use J\MVC\Controller;

class UserController extends Controller
{
    protected function optionLogin()
    {
        $intent = $this->intent;
        $context = $intent->getContext();

        $context->sendSlash(
            true,
            $intent->makeUrl('home'),
            '正在处理来自 '.$intent->getContext()->getUrl()->pop().' 的请求',
            5
        );
    }

    protected function optionHome()
    {
        echo 'Hello';
    }
}